package com.tca.springmvc.controller;

import com.tca.springmvc.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhouan
 * @Date 2021/8/21
 */
@RequestMapping("/hello")
@Controller
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping("/test")
    @ResponseBody
    public String test() {
        return helloService.test();
    }

}
